package reco.frame.demo.sample;

import com.umeng.analytics.MobclickAgent;

import reco.frame.demo.R;
import reco.frame.tv.view.TvRelativeLayoutAsScroll;
import reco.frame.tv.view.TvRelativeLayoutAsScroll.OnChildSelectListener;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.View;

public class TvRelativeLayoutAsScrollActivity extends Activity {

	
	String TAG="TvRelativeLayoutAsGroupActivity";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_relativelayoutasscroll);
		TvRelativeLayoutAsScroll trl_root = (TvRelativeLayoutAsScroll) findViewById(R.id.trl_root);
		

		trl_root.setOnChildSelectListener(new OnChildSelectListener() {

			@Override
			public void onChildSelect(View child) {

				Log.i(TAG, "当前选中的控件ID=" + child.getId());

			}
		});
	}

	@Override
	protected void onResume() {
		MobclickAgent.onResume(this);
		super.onResume();
	}

	@Override
	protected void onPause() {
		MobclickAgent.onPause(this);
		super.onPause();
	}
}
